package routers

import (
	"ginBolg/api"
	"ginBolg/middleware"
)

func (router RouterGroup) MessageRouter() {
	app := api.ApiGroupApp.MessageApi
	router.POST("message", middleware.JwtAuth(), app.MessageCreateView)
	router.GET("message_list_all", middleware.JwtAdmin(), app.MessageListAllView)
	router.GET("message_list", middleware.JwtAuth(), app.MessageListView)
	router.GET("message_record", middleware.JwtAuth(), app.MessageRecordView)
}
